/* eslint-disable prettier/prettier */
/* eslint-disable no-unused-vars */

class Lng {
  static getSysLng() {
    // 'en-US', 'zh-CN'
    return new Intl.DateTimeFormat().resolvedOptions().locale
  }

  static getSysShortLng() {
    const language = this.getSysLng()
    return language.split('-')[0]
  }
}

export default Lng
